package com.hikw.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Description: 通用配置
 * @ClassNmae: CommonConfiguration
 * @Author: hy
 * @DateTime: 2021-07-26 15:19
 **/
@Configuration
public class CommonConfiguration {

    @Bean
//    @LoadBalanced//方法3调用时需要加此注解
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

}
